<h1>Debate of the day</h1>
<div id="debate-today" class="group">
	<div class="current-debate debate-<?php echo $debate->getId() ?>">
	<?php if ($debate->getYoutubeCode() != ''): ?>
		<h3 class="youtube-size"><?php echo $debate->getText()?></h3>	
	<?php elseif ($debate->getDailyMotionCode() != ''): ?>
		<h3 class="dailymotion-size"><?php echo $debate->getText()?></h3>
	<?php elseif ($debate->getVimeoCode() != ''): ?>
		<h3 class="vimeo-size"><?php echo $debate->getText()?></h3>
	<?php endif; ?>

	<?php if($debate->getVideoCode()): ?>
		<?php include_partial('global/lypo_video',array('video_code' => $debate->getVideoCode(),'video_type' => $debate->getVideoType())); ?>
	<?php endif; ?>
		<div class="debate-options">
			<p style="margin-bottom: 0;">My opinion</p>
			<p class="opinion-options">
				<span class="vote-yes <?php if($myanswer == StatementAnswerPeer::ANSWER_AGREE) echo ' vote-yes-active';?>">Yes</span>
				<span class="vote-no<?php if($myanswer == StatementAnswerPeer::ANSWER_DISAGREE) echo ' vote-no-active';?>">No</span>
				<span>
				<?php if($myanswer == StatementAnswerPeer::ANSWER_AGREE):?>
					I agree
				<?php elseif ($myanswer == StatementAnswerPeer::ANSWER_DISAGREE): ?>
					I disagree
				<?php else: ?>
					No opinion
				<?php endif; ?>
				</span>
			</p>
			<p>
				<?php echo $debate->getNumRespects() ?>x <img src="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'/images/gadget/respect-icon-bbg.gif';?>" alt="respect" /><br />
				<?php echo $debate->countReactions() ?> comments<br />
				<span style="font-size: 8px">(<?php echo $user->getPerfectOppositesReactionCount($debate) ?> of your perfect<br />opposites commented)</span>
			</p>
			<p>
				<span class="react-to-debate debate debate-<?php echo $debate->getId(); ?>">Comment now!</span>
			</p>
		</div>
	</div>
</div>